[ Mega Script Archive ] [ Frequently Asked Questions ] [ Guestbook ]

Everything seems to work, but the guestbook isn't written to.

Most likely there is one of two solutions:

1. Check to make sure it is correctly chmoded - One of the most commons errors, is the one that occurs with chmod. The problem is often that users forget to chmod, or they use the wrong commands. If you have a setup in which the guestbook.pl is in the cgi-bin directory and the rest of your documents are in a guestbook directory, you would cd to the correct directory and perform the following commands:

      $ chmod 777 guestbook/
      $ chmod 777 guestbook/guestbook.html
      $ chmod 777 guestbook/guestlog.html
      $ chmod 744 guestbook/addguest.html
      $ chmod 755 cgi-bin/guestbook.pl

The above '$' symbols represent your Unix prompt.

2. Make sure the paths are correct in the cgi scripts - Make sure that in your variables for the cgi scripts, the paths to the documents are correct. If you are on a Unix system, you can take the filename and type:

      more filename

If it spits out the file, you probably have the correct path. Do not use '~' in your path, instead spell out each directory in the filepath.


[ Mega Script Archive ]